<form name="frmSearch" id="frmSearch" action="{$smarty.const.HOST_BACKEND}ecourse/index" onsubmit="javascript:return actionSearch();" method="get" enctype="multipart/form-data">
	<input type="hidden" name="pcancel" id="pcancel" value="0" />
    <table cellpadding="0" cellspacing="0" border="0" width="100%" class="search">
        <tbody>
            <tr>
                <td width="20%">
                    <label for="stt">Tình trạng:</label>
                    <select name="stt" id="stt" onchange="this.form.submit();">                       	                
                       	{html_options options=$arrStatus selected=$intStatus}
                    </select>
                </td>    
                <td width="20%">
                    <label for="cate">Phân loại:</label>
                    <select name="cate" id="cate" onchange="javascript:loadEdu('cate','','edu')">  
                    	<option value="0">Tất cả</option>                      
                        {foreach item=item from=$arrCate}  
                        	<option value="{$item.categoryid}">{$item.name}</option>
                        {/foreach}
                    </select>
                </td>
                <td width="35%">
                    <label for="edu">Trường:</label>
                    <select name="edu" id="edu">   
                    	<option value="0">Tất cả</option>                                            
                        {html_options options=$arrEdu selected=$intEducateId}
                    </select>
                </td>   
                <td>
                	<label for="keyword">Từ khóa:</label>
                    <input type="text" name="keyword" id="keyword" value="" maxlength="50" />
                </td>
         	</tr>
            <tr>  
            	<td>
                	<label for="startdate">Ngày đăng:</label>
                    <input type="text" name="startdate" id="startdate" value="{if isset($smarty.session.edupost)}{$smarty.session.edupost.startdate|escape}{/if}" class="half first" autocomplete="off"/>
                    <input type="text" name="enddate" id="enddate" value="{if isset($smarty.session.edupost)}{$smarty.session.edupost.enddate|escape}{/if}" class="half" autocomplete="off"/>
                </td>           
                <td>
                    <button type="submit" class="search">Tìm kiếm</button>
                    {if isset($smarty.session.ECOURSE_CANCEL) && $smarty.session.ECOURSE_CANCEL == 1}                
                    	<button type="button" onclick="javascript:cancelSearch(this.form);" class="search">Thôi Tìm kiếm</button>
                    {/if}
                </td>
            </tr> 
        </tbody>
    </table>
</form>